﻿/***********************************************************************
 * <copyright file="AutoNumberEntity.cs" company="BUCA JSC">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   ThangND
 * Email:    thangnd@buca.vn
 * Website:
 * Create Date: 07 March 2014
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using BusinessObjects;

namespace BusinessObjects.BussinessDictionary
{
    /// <summary>
    /// AutoNumberEntity
    /// </summary>
    public class AutoNumber : BusinessObject
    {
        /// <summary> 
        /// Initializes a new instance of the <see cref="AutoNumberEntity"/> class.
        /// </summary>
        public AutoNumber()
        {
        }


        /// <summary>
        /// Initializes a new instance of the <see cref="AutoNumber"/> class.
        /// </summary>
        /// <param name="refTypeId">The reference type identifier.</param>
        /// <param name="prefix">The prefix.</param>
        /// <param name="suffix">The suffix.</param>
        /// <param name="value">The value.</param>
        /// <param name="lengthOfValue">The length of value.</param>
        /// <param name="unitId">The unit identifier.</param>
        public AutoNumber(int autoId,int refTypeId, string prefix, string suffix, int value, int lengthOfValue,long unitId) 
            : this()
        {
            AutoId = autoId;
            RefTypeId = refTypeId;
            Prefix = prefix;
            Suffix = suffix;
            Value = value;
            LengthOfValue = lengthOfValue;
            UnitId = unitId;
        }
        public int AutoId { get; set; }
        /// <summary>
        /// Gets or sets the reference type identifier.
        /// </summary>
        /// <value>
        /// The reference type identifier.
        /// </value>
        public long UnitId { get; set; } 

        /// <summary>
        /// Gets or sets the reference type identifier.
        /// </summary>
        /// <value>
        /// The reference type identifier.
        /// </value>
        public int RefTypeId { get; set; }

        /// <summary>
        /// Gets or sets the prefix.
        /// </summary>
        /// <value>
        /// The prefix.
        /// </value>
        public string Prefix { get; set; }

        /// <summary>
        /// Gets or sets the suffix.
        /// </summary>
        /// <value>
        /// The suffix.
        /// </value>
        public string Suffix { get; set; }

        /// <summary>
        /// Gets or sets the value.
        /// </summary>
        /// <value>
        /// The value.
        /// </value>
        public int Value { get; set; }

        /// <summary>
        /// Gets or sets the length of value.
        /// </summary>
        /// <value>
        /// The length of value.
        /// </value>
        public int LengthOfValue { get; set; }
    }
}
